package com.wx.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.AssertTrue;

/**
 * @author Administrator
 * @date 2022/12/29 14:19
 **/

@AllArgsConstructor
@NoArgsConstructor
@Data
public class PersonVo {


    private int id;
    private String name;

    private int age;
    private double weight;
    @AssertTrue(message = "开启状态只能为true")
    private boolean enable;
}
